#include<stdio.h>
#include<string.h>

/*判断字符串·是否为回文字符串*/

int main()
{
    char buffer[] = "abcba";
    int front = 0;
    int back = strlen(buffer) -1;

    int flag = 1;
    for (int idx = 0; idx < strlen(buffer)/2;idx++)
    {
       if(buffer[front] == buffer[back])
       {
            front++;
            back--;
       }
       else
       {
        flag = 0;
        break;
       }
    }
    if (flag == 1)
    {
      printf("是\n");
    }
    else
    {
      printf("不是\n");
    }
}